<div class="form protected-form">


<?php $form = $this->beginWidget('GxActiveForm', array(
	'id' => 'user-form',
	'enableAjaxValidation' => false,
));
?>

<?php echo $form->errorSummary($model); ?>


<h2 class="form-header">
    <?php
    echo CHtml::encode($this->pageTitle);
    ?>

</h2>

<table class="form-grid">
  <tr>
		<td><?php echo $form->labelEx($model,'username'); ?>
</td>
		<td><?php echo $form->textField($model, 'username', array('maxlength' => 20,'class'=>'input-maxlarge')); ?>
</td>
  </tr>
  <tr>
		<td><?php echo $form->labelEx($model,'fullname'); ?>
</td>
		<td><?php echo $form->textField($model, 'fullname', array('maxlength' => 40,'class'=>'input-maxlarge')); ?>
</td>
  </tr>
  <tr>
		<td><?php echo $form->labelEx($model,'password'); ?>
</td>
		<td><?php echo $form->passwordField($model, 'password', array('value'=>'','maxlength' => 128,'class'=>'input-maxlarge')); ?>
</td>
  </tr>
  <tr>
		<td><?php echo $form->labelEx($model,'email'); ?>
</td>
		<td><?php echo $form->textField($model, 'email', array('maxlength' => 40,'class'=>'input-maxlarge')); ?>
</td>
  </tr>
  <tr>
		<td><?php echo $form->labelEx($model,'user_role_id'); ?>
</td>
		<td><?php echo Chosen::activeDropDownList($model, 'user_role_id', GxHtml::listDataEx(UserRole::model()->findAllAttributes(null, true)),array('class'=>'input-maxlarge')); ?>
</td>
  </tr>

</table>
<?php
echo GxHtml::submitButton(Yii::t('app', 'Save'),array('id'=>'submit-button','class'=>'form-button'));
$this->endWidget();
?>
</div><!-- form -->